﻿<!DOCTYPE html>
<html>
    <head>
        <meta charset='UTF-8'>
    <title>RPG Maker Mv -MV存档解密破解 </title>
    <meta name="Keywords" content="Rpg maker Mv,rmmv,MV,RPGMAKER,RPGMV,插件,脚本,更新,javascript,JS,资源,素材,破解教程,修改,插件整合,RPG Maker">
    <meta name="Description" content="RPGMAKER,RPGMV,插件,脚本,更新:Rmmv RPGMaker mv">
	<link rel="shortcut icon" href="https://d289qh4hsbjjw7.cloudfront.net/rpgmaker-20130522223546811/files/B-RMMV.png" />
	<link rel="Bookmark" href="https://d289qh4hsbjjw7.cloudfront.net/rpgmaker-20130522223546811/files/B-RMMV.png" />
        <style>
            body {padding: 20px;}
            div {margin-top: 20px;}
            button {margin-right: 20px;}
            textarea {width: 50%; height: 300px;}
            #drop-area {
                display: block;
                width: 50%;
                height: 50px;
                line-height:50px;
                text-align: center;
                border: 2px dashed #aaa;
            }
            #drop-area.hover {
                border: 2px solid #f35;
            }
        </style>
    </head>

    <style>
        a {
            text-shadow: 1px 1px 3px #979D75;
            color: #1D74FA;
            text-decoration: none;
        }
        article {
            width: 900px;
            margin: 3% auto;
        }
        h1,h2 {
            text-shadow: 1px 1px 5px #555;
            
        }
        h1 {
            font-size: 75px;
        }
        ::selection {
            background: #599A0F;
            color: #FFF;
        }
        .hide {
            display: none;
            overflow: hidden;
        }
    </style>
</head>
</head> <body bgcolor="#99CCCC"> 
    <body>
        <script type='text/javascript' src='lz-string-1.4.4.js'></script>
        <h1><IMG src="https://d289qh4hsbjjw7.cloudfront.net/rpgmaker-20130522223546811/files/B-RMMV.png" width=40>MV存档文件通用加解密器</h1>
        <div><span>粘贴存盘文件内容，或者拖放文件喵</span></div><div><small>注意：旧版IE浏览器是不行的喵</small></div>
        <div><p id='drop-area'><span>将存档文件拖到这里来吧</span></p></div>
        <div><p>密文内容</p><textarea id='input'></textarea></div>
        <div><button onclick='doDecrypt()'>↓解密↓</button><button onclick='doEncrypt()'>↑加密↑</button><span id='message'></span></div>
        <div><p>明文内容</p><textarea id='output'></textarea></div>
        <script>
            'use strict';
            function doDecrypt() {
                var message = null;
                try {
                    var content = LZString.decompressFromBase64(document.getElementById('input').value);
                    if (content === null) throw {message: '无法加密（数据错误？）'};
                    document.getElementById('output').value = content;
                    message = '解密完成了喵';
                } catch (err) {
                    message = '解密杯具了喵QAQ：' + err.message;
                }
                document.getElementById('message').innerHTML = message;
            }
            function doEncrypt() {
                var message = null;
                try {
                    JSON.parse(document.getElementById('output').value);
                    var content = LZString.compressToBase64(document.getElementById('output').value);
                    if (content === null) throw {message: '无法加密（数据错误？）'};
                    document.getElementById('input').value = content;
                    message = '加密完成了喵';
                } catch (err) {
                    message = '加密杯具了喵QAQ：' + err.message;
                }
                document.getElementById('message').innerHTML = message;
            }
            window.onload = function() {
                if (typeof LZString === 'undefined' || typeof FileReader === 'undefined') {
                    document.getElementById('input').disabled = true;
                    document.getElementById('output').disabled = true;
                    alert('初始化失败喵！\n都是时辰，呃，都是你浏览器的错喵！');
                } else {
                    var dropArea = document.getElementById('drop-area');
                    dropArea.addEventListener('drop', function (e) {
                        if (typeof e.dataTransfer !== 'undefined' && typeof e.dataTransfer.files !== 'undefined') {
                            var reader = new FileReader();
                            reader.onload = function (e) {
                                document.getElementById('input').value = e.target.result;
                            };
                            reader.readAsText(e.dataTransfer.files[0]);
                        } else {
                            alert('都说了IE是不行的喵！');
                        }
                        e.preventDefault();
                        e.stopPropagation();
                    }, false);
                    dropArea.addEventListener('dragover', function (e) {
                        e.stopPropagation();
                        e.preventDefault();
                        e.target.className = 'hover';
                    }, false);
                    dropArea.addEventListener('dragleave', function (e) {
                        e.stopPropagation();
                        e.preventDefault();
                        e.target.className = '';
                    }, false);
                }
            }
        </script>
    </body>
</html>